﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UWarrantyCardAgentEdit.aspx.cs" Inherits="IHISCETeim.Web.AgentSys.SvrMgr.UWarrantyCardAgentEdit" %>
<style>
    .divider{ padding:1px!important; margin:1px!important; }
    .pageFormContent .p,.pageFormContent .dl{height:20px!important;}
    .uwc2div label{width:130px!important;}
</style>
<div class="pageContent">
	<form id="Form1"  action="SvrMgr/UWarrantyCardAgentEdit.aspx?ajaxmethod=edit&uwcid=<%=UWCID %>" class="pageForm required-validate" onsubmit="return validateCallback(this,navTabAjaxDone);">
   

    <div class="tabs" currentIndex="0" eventType="click">
		<div class="tabsHeader">
			<div class="tabsHeaderContent">
				<ul>
					<li><a href="javascript:;"><span>保修卡</span></a></li>
					<li><a href="javascript:;"><span>调查表</span></a></li>
				</ul>
			</div>
		</div>
		<div class="tabsContent">
			<div class="pageFormContent" layoutH="90">            
			<p>
				<label>机型：</label>
                 <%=GetMacType("select", "MachineType", obj.MachineType)%>
			</p>
            <p>
				<label>机号：</label>
                   <input type="text" name="SerialNumber" class="required" alt="请输入机号" value="<%=obj.SerialNumber %>"  />
			</p>
            <p>
            <label>是否是VIP：</label>
                   <input type="checkbox" name="IsVip" value="true" <%=obj.IsVip?"checked":"" %>  />
			</p>
            <p>
            <label>是否已交保修卡：</label>
                   <input type="checkbox" name="IsHandCard" value="true" <%=obj.IsHandCard?"checked":"" %>  />
			</p>
            <p>
				<label>关键部件是否延保：</label>
                   <input type="checkbox" name="IsKeepSvr" value="true"  <%=obj.IsKeepSvr?"checked":"" %>/>
			</p>
                 <p>
				<label>是否安装破碎器：</label>
                   <input type="checkbox" name="IsBreaker" value="true"   <%=obj.IsBreaker?"checked":"" %>/>
			</p>
            <div class="divider"></div>
          
            <p>
				<label>发动机号：</label>
                   <input type="text" name="EngineNumber" class="" alt="请输入发动机编号"  value="<%=obj.EngineNumber %>"/>
			</p>
             <p>
				<label>交机日期：</label>
                   <input type="text" name="IntoDate" class="date" readonly="true"  format="yyyy-MM-dd" value="<%=Convert.ToDateTime(obj.IntoDate).ToString("yyyy-MM-dd") %>"/><a class="inputDateButton" href="javascript:;">选择</a>
			</p>
             <div class="divider"></div>
             
            <p>
				<label>交机小时数：</label>
                   <input type="text" name="IntoHours" class="inputFloat" alt="" value="<%=obj.IntoHours %>"/>
                <span>请勿加h</span>
			</p>
            <p>
				<label>交机地址：</label>
                   <input type="text" name="IntoAddress" class="" alt=""  value="<%=obj.IntoAddress %>" />
			</p>
             <div class="divider"></div>             
            <dl class="nowrap">
				<dt>特别附件及规格：</dt>
			    <table>
                    <tr>
                        <td>
                            <input type="checkbox" name="IntoSpecial" value="标准式样" <%=GetIntoSpecial("标准式样") %> />标准式样
                            <input type="checkbox" name="IntoSpecial" value="带破碎管路" <%=GetIntoSpecial("带破碎管路") %>/>带破碎管路
                            <input type="checkbox" name="IntoSpecial" value="加长臂" <%=GetIntoSpecial("加长臂") %>/>加长臂
                            <input type="checkbox" name="IntoSpecial" value="加宽铲斗" <%=GetIntoSpecial("加宽铲斗") %>/>加宽铲斗
                            <input type="checkbox" name="IntoSpecial" value="其他" <%=GetIntoSpecial("其他") %>/>其他
                        </td>
                        <td>
                         <input type="text" name="IntoSpecialOther" class="" alt=""  value="<%=obj.IntoSpecialOther %>"/>   
                        </td>
                    </tr>
                </table>                
			</dl>
            <div class="divider"></div>             
            <dl class="nowrap">
				<dt>使用现场工况：</dt>
			    <table>
                    <tr>
                        <td>
                            <input type="checkbox" name="IntoConditi" value="土方" <%=GetIntoConditi("土方") %>/>土方
                            <input type="checkbox" name="IntoConditi" value="砂石" <%=GetIntoConditi("砂石") %>/>砂石
                            <input type="checkbox" name="IntoConditi" value="采石" <%=GetIntoConditi("采石") %>/>采石
                            <input type="checkbox" name="IntoConditi" value="挖砂" <%=GetIntoConditi("挖砂") %>/>挖砂
                            <input type="checkbox" name="IntoConditi" value="造园" <%=GetIntoConditi("造园") %>/>造园
                            <input type="checkbox" name="IntoConditi" value="其他" <%=GetIntoConditi("其他") %>/>其他
                        </td>
                        <td>
                         <input type="text" name="IntoConditiOther" class="" alt=""  value="<%=obj.IntoConditiOther %>"/>   
                        </td>
                    </tr>
                </table>                
			</dl>
           <div class="divider"></div>  
           <p>
				<label>客户姓名：</label>
                   <input type="text" name="CustomerName" class="required" alt="请输入客户姓名"  value="<%=obj.CustomerName %>" />
			</p>
             <p>
				<label>客户电话：</label>
                   <input type="text" name="CustomerTel" class="" alt=""  value="<%=obj.CustomerTel %>"/>
			</p>
            <div class="divider"></div>  
            <dl class="nowrap">
				<dt>客户手机：</dt>
                <dd><input type="text" name="CustomerMobile" class="required" alt=""  size="50" value="<%=obj.CustomerMobile %>"/></dd>
            </dl>
            <div class="divider"></div>  
            <dl class="nowrap">
				<dt>客户身份证：</dt>
                <dd><input type="text" name="CustomerIDCard" class="idcard required" alt="" size="50" value="<%=obj.CustomerIDCard %>"/></dd>
               
            </dl>
            <dl class="nowrap">
             <dt>生日：</dt>
                <dd><input type="text" name="Birthday" class="date" readonly="readonly" format="MM-dd" alt=""   value="<%=obj.Birthday %>" yearstart="-60" yearend="-10"/></dd>
                </dl>
            <div class="divider"></div> 
            <dl class="nowrap">
				<dt>客户详细地址：</dt>
                <dd><input type="text" name="CustomerAddress" class="required" size="50"  value="<%=obj.CustomerAddress %>" /></dd>
            </dl>          

        <div class="divider"></div>  
           <p>
				<label>经销商名称：</label>
               

                <%if(HasPower(IHISCETeim.Web.Permission.经销商平台_公司人员)){ %>
                <input type="text" name="dwz.orgLookup.AgentName" class="required textInput autocomplete" alt=""
                        size="30"  value="<%=obj.AgentName %>" autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getagentlist" swidth="300" showinputid="UWarrantyCardEdit_AgentAddress"/>
                    <a class="btnLook" href="/MachineSys/SAPAgentListLookUp.aspx"  lookupgroup="orgLookup"
                        maxable="false" width="600" resizable="false" title="经销商列表">
                        <hi:text key="查找带回" />
                    </a>
                <%}else{ %>
                    <input type="text" name="dwz.orgLookup.AgentName" readonly class=""  value="<%=obj.AgentName %>" />
               <%} %>

			</p>
             <p>
				<label>服务电话：</label>
                   <input type="text" name="AgentTel" class="" alt=""  value="<%=obj.AgentTel %>"/>
			</p>
           <div class="divider"></div>  
           <p>
				<label>交机服务人员：</label>
                   <input type="text" name="AgentSvrPer" class="" alt=""  value="<%=obj.AgentSvrPer %>"/>
			</p>
             <p>
				<label>交机人电话：</label>
                   <input type="text" name="AgentSvrPerTel" class="" alt=""  value="<%=obj.AgentSvrPerTel %>"/>
			</p>
            
            <div class="divider"></div>  
                <dl class="nowrap">
				<dt>质保期限：</dt>
                <dd>
                    <select name="zipaoqixian">
                        <option value="0" <%=obj.zipaoqixian=="0"?"selected":"" %>>请选择</option>
                        <option value="1" <%=obj.zipaoqixian=="1"?"selected":"" %>>12个月不限小时</option>
                        <option value="2" <%=obj.zipaoqixian=="2"?"selected":"" %>>15个月或2000小时(说明:仅限黑、辽、甘、宁、蒙、新、青、藏区域)</option>
                    </select>
                </dd>
            </dl>
            <dl class="nowrap">
				<dt>备注：</dt>
                <dd>
                <textarea  name="Remark"  cols="60" rows="5" ><%=obj.Remark%></textarea>
                </dd>
            </dl>
                <div class="divider"></div>  

                  <table style=" border-spacing:5px;">
                <tr>
                    <td style="vertical-align:top;width:140px;">保修卡正面扫描件：</td>
                    <td>
                         <input type="hidden" name="ScanImg1" id="UWarrantyCardAgentEditScanImg1" value="<%=obj.ScanImg1 %>" />
                         <a href="<%= ResolveClientUrl(obj.ScanImg1) %>" class="UWarrantyCardAgentEditShowImg">
                             <img id="UWarrantyCardAgentEditimgShow1" src="<%= ResolveClientUrl(obj.ScanImg1) %>"  Width="150" Height="150"/>
                           </a>
                         <table border="0">
                                   <tr>
                                       <td><input type="file" name="filedata" id="UWarrantyCardAgentEditScanImg1upload" uploadify="uploadify" clientId="UWarrantyCardAgentEditScanImg1,UWarrantyCardAgentEditimgShow1" dirtype="5" foldername="<%=User.Department %>" onUploadSuccess="onUWarrantyCardAgentEditUploadFileSuccess" fileSizeLimit="1MB"/></td>
                                       <td><a href="#" onclick="onUWarrantyCardAgentEditDeleteUpload('UWarrantyCardAgentEditScanImg1','UWarrantyCardAgentEditimgShow1')" >删除</a></td>
                                   </tr>
                          </table>
                    </td>
                    <td style="vertical-align:top;width:140px; text-align:right;">保修卡反面扫描件：</td>
                    <td>
                          <input type="hidden" name="ScanImg2" id="UWarrantyCardAgentEditScanImg2" value="<%=obj.ScanImg2 %>" />
                            <a href="<%= ResolveClientUrl(obj.ScanImg2) %>" class="UWarrantyCardAgentEditShowImg">
                          <img id="UWarrantyCardAgentEditimgShow2" src="<%= ResolveClientUrl(obj.ScanImg2) %>"  Width="150" Height="150"/>
                            </a>
                        <table border="0">
                                   <tr>
                                       <td> <input type="file" name="filedata" id="UWarrantyCardAgentEditScanImg2upload" uploadify="uploadify" clientId="UWarrantyCardAgentEditScanImg2,UWarrantyCardAgentEditimgShow2" dirtype="5" foldername="<%=User.Department %>" onUploadSuccess="onUWarrantyCardAgentEditUploadFileSuccess" fileSizeLimit="1MB"/></td>
                                       <td><a href="#" onclick="onUWarrantyCardAgentEditDeleteUpload('UWarrantyCardAgentEditScanImg2','UWarrantyCardAgentEditimgShow2')" >删除</a></td>
                                   </tr>
                          </table>
                    </td>
                </tr>
                <tr>
                    <td style="vertical-align:top;width:140px;">机号照片：</td>
                    <td>
                         <input type="hidden" name="ScanImgJiHao" id="UWarrantyCardAgentEditScanImgJiHao" value="<%=obj.ScanImgJiHao %>" />
                         <a href="<%= ResolveClientUrl(obj.ScanImgJiHao) %>" class="UWarrantyCardAgentEditShowImg">
                             <img id="UWarrantyCardAgentEditScanImgJiHaoShow" src="<%= ResolveClientUrl(obj.ScanImgJiHao) %>"  Width="150" Height="150"/>
                           </a>
                         <table border="0">
                                   <tr>
                                       <td><input type="file" name="filedata" id="UWarrantyCardAgentEditScanImgJiHaoupload" uploadify="uploadify" clientId="UWarrantyCardAgentEditScanImgJiHao,UWarrantyCardAgentEditScanImgJiHaoShow" dirtype="5" foldername="<%=User.Department %>" onUploadSuccess="onUWarrantyCardAgentEditUploadFileSuccess" fileSizeLimit="1MB"/></td>
                                       <td><a href="#" onclick="onUWarrantyCardAgentEditDeleteUpload('UWarrantyCardAgentEditScanImgJiHao','UWarrantyCardAgentEditScanImgJiHaoShow')" >删除</a></td>
                                   </tr>
                          </table>
                    </td>
                    <td style="vertical-align:top;width:140px; text-align:right;">工作小时照片：</td>
                    <td>
                          <input type="hidden" name="ScanImgWorkTime" id="UWarrantyCardAgentEditScanImgWorkTime" value="<%=obj.ScanImgWorkTime %>" />
                         <a href="<%= ResolveClientUrl(obj.ScanImgWorkTime) %>" class="UWarrantyCardAgentEditShowImg">
                             <img id="UWarrantyCardAgentEditScanImgWorkTimeShow" src="<%= ResolveClientUrl(obj.ScanImgWorkTime) %>"  Width="150" Height="150"/>
                           </a>
                         <table border="0">
                                   <tr>
                                       <td><input type="file" name="filedata" id="UWarrantyCardAgentEditScanImgWorkTimeupload" uploadify="uploadify" clientId="UWarrantyCardAgentEditScanImgWorkTime,UWarrantyCardAgentEditScanImgWorkTimeShow" dirtype="5" foldername="<%=User.Department %>" onUploadSuccess="onUWarrantyCardAgentEditUploadFileSuccess" fileSizeLimit="1MB"/></td>
                                       <td><a href="#" onclick="onUWarrantyCardAgentEditDeleteUpload('UWarrantyCardAgentEditScanImgWorkTime','UWarrantyCardAgentEditScanImgWorkTimeShow')" >删除</a></td>
                                   </tr>
                          </table>
                    </td>                    
                </tr>
                <tr>
                    <td style="vertical-align:top;width:140px;">交机人员、客户及机器合影：</td>
                    <td>
                          <input type="hidden" name="ScanImgHeYing" id="UWarrantyCardAgentEditScanImgHeYing" value="<%=obj.ScanImgHeYing %>" />
                         <a href="<%= ResolveClientUrl(obj.ScanImgHeYing) %>" class="UWarrantyCardAgentEditShowImg">
                             <img id="UWarrantyCardAgentEditScanImgHeYingShow" src="<%= ResolveClientUrl(obj.ScanImgHeYing) %>"  Width="150" Height="150"/>
                           </a>
                         <table border="0">
                                   <tr>
                                       <td><input type="file" name="filedata" id="UWarrantyCardAgentEditScanImgHeYingupload" uploadify="uploadify" clientId="UWarrantyCardAgentEditScanImgHeYing,UWarrantyCardAgentEditScanImgHeYingShow" dirtype="5" foldername="<%=User.Department %>" onUploadSuccess="onUWarrantyCardAgentEditUploadFileSuccess" fileSizeLimit="1MB"/></td>
                                       <td><a href="#" onclick="onUWarrantyCardAgentEditDeleteUpload('UWarrantyCardAgentEditScanImgHeYing','UWarrantyCardAgentEditScanImgHeYingShow')" >删除</a></td>
                                   </tr>
                          </table>
                    </td>
                    <td style="vertical-align:top;width:140px; text-align:right;">
                        交机热烈场景照片
                    </td>
                    <td>
                        <input type="hidden" name="ScanImgJiaJi" id="UWarrantyCardAgentEditScanImgJiaJi" value="<%=obj.ScanImgJiaJi %>" />
                         <a href="<%= ResolveClientUrl(obj.ScanImgJiaJi) %>" class="UWarrantyCardAgentEditShowImg">
                             <img id="UWarrantyCardAgentEditScanImgJiaJiShow" src="<%= ResolveClientUrl(obj.ScanImgJiaJi) %>"  Width="150" Height="150"/>
                           </a>
                         <table border="0">
                                   <tr>
                                       <td><input type="file" name="filedata" id="UWarrantyCardAgentEditScanImgJiaJiupload" uploadify="uploadify" clientId="UWarrantyCardAgentEditScanImgJiaJi,UWarrantyCardAgentEditScanImgJiaJiShow" dirtype="5" foldername="<%=User.Department %>" onUploadSuccess="onUWarrantyCardAgentEditUploadFileSuccess" fileSizeLimit="1MB"/></td>
                                       <td><a href="#" onclick="onUWarrantyCardAgentEditDeleteUpload('UWarrantyCardAgentEditScanImgJiaJi','UWarrantyCardAgentEditScanImgJiaJiShow')" >删除</a></td>
                                   </tr>
                          </table>
                    </td>                    
                </tr>

                <tr>
                    <td style="vertical-align:top;width:140px;">破碎器安装报告：</td>
                    <td>
                          <input type="hidden" name="ScanImgPuoChui" id="UWarrantyCardAgentEditScanImgPuoChui" value="<%=obj.ScanImgPuoChui %>" />
                         　<a href="<%= ResolveClientUrl(obj.ScanImgPuoChui) %>" class="UWarrantyCardAgentEditShowImg">
                             <img id="UWarrantyCardAgentEditScanImgPuoChuiShow" src="<%= ResolveClientUrl(obj.ScanImgPuoChui) %>"  Width="150" Height="150"/>
                           </a>
                         <table border="0">
                                   <tr>
                                       <td><input type="file" name="filedata" id="UWarrantyCardAgentEditScanImgPuoChuiupload" uploadify="uploadify" clientId="UWarrantyCardAgentEditScanImgPuoChui,UWarrantyCardAgentEditScanImgPuoChuiShow" dirtype="5" foldername="<%=User.Department %>" onUploadSuccess="onUWarrantyCardAgentEditUploadFileSuccess" fileSizeLimit="1MB"/></td>
                                       <td><a href="#" onclick="onUWarrantyCardAgentEditDeleteUpload('UWarrantyCardAgentEditScanImgPuoChui','UWarrantyCardAgentEditScanImgPuoChuiShow')" >删除</a></td>
                                   </tr>
                          </table>
                    </td>
                    <td style="vertical-align:top;width:140px; text-align:right;">
                        
                    </td>
                    <td>
                       
                    </td>                    
                </tr>
                <tr>
                    <td style="vertical-align:top;width:140px;">延保协议1：</td>
                    <td>
                          <input type="hidden" name="ScanImgYuanBao1" id="UWarrantyCardAgentEditScanImgYuanBao1" value="<%=obj.ScanImgYuanBao1 %>" />
                         <a href="<%= ResolveClientUrl(obj.ScanImgYuanBao1) %>" class="UWarrantyCardAgentEditShowImg">
                             <img id="UWarrantyCardAgentEditScanImgYuanBao1Show" src="<%= ResolveClientUrl(obj.ScanImgYuanBao1) %>"  Width="150" Height="150"/>
                           </a>
                         <table border="0">
                                   <tr>
                                       <td><input type="file" name="filedata" id="UWarrantyCardAgentEditScanImgYuanBao1upload" uploadify="uploadify" clientId="UWarrantyCardAgentEditScanImgYuanBao1,UWarrantyCardAgentEditScanImgYuanBao1Show" dirtype="5" foldername="<%=User.Department %>" onUploadSuccess="onUWarrantyCardAgentEditUploadFileSuccess" fileSizeLimit="1MB"/></td>
                                       <td><a href="#" onclick="onUWarrantyCardAgentEditDeleteUpload('UWarrantyCardAgentEditScanImgYuanBao1','UWarrantyCardAgentEditScanImgYuanBao1Show')" >删除</a></td>
                                   </tr>
                          </table>
                    </td>
                    <td style="vertical-align:top;width:140px; text-align:right;">
                        延保协议2
                    </td>
                    <td>
                        <input type="hidden" name="ScanImgYuanBao2" id="UWarrantyCardAgentEditScanImgYuanBao2" value="<%=obj.ScanImgYuanBao2 %>" />
                         <a href="<%= ResolveClientUrl(obj.ScanImgYuanBao2) %>" class="UWarrantyCardAgentEditShowImg">
                             <img id="UWarrantyCardAgentEditScanImgYuanBao2Show" src="<%= ResolveClientUrl(obj.ScanImgYuanBao2) %>"  Width="150" Height="150"/>
                           </a>
                         <table border="0">
                                   <tr>
                                       <td><input type="file" name="filedata" id="UWarrantyCardAgentEditScanImgYuanBao2upload" uploadify="uploadify" clientId="UWarrantyCardAgentEditScanImgYuanBao2,UWarrantyCardAgentEditScanImgYuanBao2Show" dirtype="5" foldername="<%=User.Department %>" onUploadSuccess="onUWarrantyCardAgentEditUploadFileSuccess" fileSizeLimit="1MB"/></td>
                                       <td><a href="#" onclick="onUWarrantyCardAgentEditDeleteUpload('UWarrantyCardAgentEditScanImgYuanBao2','UWarrantyCardAgentEditScanImgYuanBao2Show')" >删除</a></td>
                                   </tr>
                          </table>
                    </td>                    
                </tr>
                <tr>
                    <td style="vertical-align:top;width:140px;">燃油系统防护告知书1：</td>
                    <td>
                         <input type="hidden" name="LYXTFHGZS1" id="UWarrantyCardAgentEditLYXTFHGZS1" value="<%=obj.LYXTFHGZS1 %>"/>
                        <a href="<%= ResolveClientUrl(obj.LYXTFHGZS1) %>" class="UWarrantyCardAgentEditShowImg">
                             <img id="UWarrantyCardAgentEditLYXTFHGZS1Show" src="<%= ResolveClientUrl(obj.LYXTFHGZS1) %>"  Width="150" Height="150"/>
                        </a>
                         <table border="0">
                                   <tr>
                                       <td><input type="file" name="filedata" id="UWarrantyCardAgentEditLYXTFHGZS1upload" uploadify="uploadify" clientId="UWarrantyCardAgentEditLYXTFHGZS1,UWarrantyCardAgentEditLYXTFHGZS1Show" dirtype="5" foldername="<%=User.Department %>" onUploadSuccess="onUWarrantyCardAgentEditUploadFileSuccess" fileSizeLimit="1MB"/></td>
                                       <td><a href="#" onclick="onUWarrantyCardAgentEditDeleteUpload('UWarrantyCardAgentEditLYXTFHGZS1','UWarrantyCardAgentEditLYXTFHGZS1Show')" >删除</a></td>
                                   </tr>
                          </table>
                    </td>
                    <td style="vertical-align:top;width:140px; text-align:right;">
                        燃油系统防护告知书2
                    </td>
                    <td>
                          <input type="hidden" name="LYXTFHGZS2" id="UWarrantyCardAgentEditLYXTFHGZS2" value="<%=obj.LYXTFHGZS2 %>"/>
                        <a href="<%= ResolveClientUrl(obj.LYXTFHGZS2) %>" class="UWarrantyCardAgentEditShowImg"> 
                            <img id="UWarrantyCardAgentEditLYXTFHGZS2Show" src="<%= ResolveClientUrl(obj.LYXTFHGZS2) %>"  Width="150" Height="150"/>
                        </a>
                             <table border="0">
                                   <tr>
                                       <td><input type="file" name="filedata" id="UWarrantyCardAgentEditLYXTFHGZS2upload" uploadify="uploadify" clientId="UWarrantyCardAgentEditLYXTFHGZS2,UWarrantyCardAgentEditLYXTFHGZS2Show" dirtype="5" foldername="<%=User.Department %>" onUploadSuccess="onUWarrantyCardAgentEditUploadFileSuccess" fileSizeLimit="1MB"/></td>
                                       <td><a href="#" onclick="onUWarrantyCardAgentEditDeleteUpload('UWarrantyCardAgentEditLYXTFHGZS2','UWarrantyCardAgentEditLYXTFHGZS2Show')" >删除</a></td>
                                   </tr>
                          </table>
                    </td>                    
                </tr>
                <tr>
                    <td colspan="3" style="font-weight:bold;color:red; padding:2px 10px;">
                        交机人员非服务人员或无着工作服进行规范服务，将扣除100元交机费用
                    </td>
                </tr>
            </table>


            
    </div>
			<div class="pageFormContent uwc2div" layoutH="90">
                <%=GetUQuestionTemplete() %>
            </div>		
		</div>
		<div class="tabsFooter">
			<div class="tabsFooterContent"></div>
		</div>
	</div>

    <div class="formBar">
   
			<ul>
				<li><div class="buttonActive"><div class="buttonContent">                 
                    <button type="submit">保存</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
       
	</form>
    </div>
<script>

    $(document).ready(function () {
        $("a.UWarrantyCardAgentEditShowImg").fancybox();
    })

    function onUWarrantyCardAgentEditDeleteUpload($objHide, $objImg) {
        // $(obj).closest("table").closest("td").find(":hidden").val("");
        //$(obj).closest("table").closest("td").find("img").attr("src", "");
        $("#" + $objHide).val("");
        $("#" + $objImg).attr("src", "");

        // $("#UWarrantyCardAgentAddScanImg" + index).val("");
        // $("#UWarrantyCardAgentAddimgShow" + index).attr("src", "");;
    }
    function onUWarrantyCardAgentEditUploadFileSuccess(file, data, response) {
        if (!response)
            return false;
        data = eval("(" + data + ")");
        if (!data.uploadResult) {
            alert(data.errMsg);
            return;
        }
        var $imgUploadPath = data.filePath;
        var $trageIds = data.customerInfo.split(",");
        $("#" + $trageIds[0]).val($imgUploadPath);
        $("#" + $trageIds[1]).attr("src", $imgUploadPath);
    }
</script>